<h1>Aktywność: {$arrData->getDescription()}</h1>
{mainoptions title=$title }
<form action="" method="post">
	<table cellspacing="0" cellpadding="0" border="0" width="100%" class="commonTable">
		<tr>
			<th>Nazwa aktywności</th>
			<td><input type="text" name="name" value="{if $arrPostData.name}{$arrPostData.name}{else}{$arrData->getName()}{/if}" {$disabled}/><br/>{$errors_data.name}</td>

		</tr>
		<tr>
			<th>Ilość punktów</th>
			<td><input type="text" name="points" value="{if $arrPostData.points}{$arrPostData.points}{else}{$arrData->getPoints()}{/if}" /><br/>{$errors_data.points}</td>
			
		</tr>
		<tr>
			<th>Rodzaj aktywności</th>
			<td>
				<input type="text" name="description" value="{if $arrPostData.description}{$arrPostData.description}{else}{$arrData->getDescription()}{/if}" /><br/>{$errors_data.description}
			</td>
		</tr>
		<tr>
			<th>Wall</th>
			<td>
				<input type="checkbox" name="wall" value="1" {if $arrPostData.description}checked="checked"{/if} /><br/>{$errors_data.description}
			</td>
		</tr>
	</table>
	<p align="right">
		<input type="submit" value="Anuluj" class="cancel" onclick="document.location.href='{url UserActivity='Index' id=$arrData->GetId()}'; return false;" />

		<input type="submit" value="Zapisz i przejdź do listy" />
	</p>
	<input type="hidden" name="go" value="1" />
	<input type="hidden" name="id" value={$arrData->GetId()} />
</form>
{/mainoptions}